//
//  UIButton+Block.h
//  HYSmileiOS
//
//  Created by alekye on 16/4/24.
//  Copyright © 2016年 heyou. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  按钮回调Block
 */
typedef void (^ButtonActionBlock)(UIButton *sender);

@interface UIButton (Block)

/**
 *  UIButton添加UIControlEvents事件的block
 *
 *  @param event 事件
 *  @param action block代码
 */
- (void) handleControlEvent:(UIControlEvents)event withBlock:(ButtonActionBlock)action;

@end
